import { getClientWS } from './getClientWS'
import { sendWebSocket } from '../common/sendWebSocket'
import { SOCKET_DATA_TYPES } from '../common/actionTypes'

export const runPlan = async (plan) => {
    const ws = await getClientWS()

    sendWebSocket(ws, SOCKET_DATA_TYPES.RUN_PLAN, plan)
}